package tests;

import java.io.IOException;

import ep.io.BoardAntPrinter;
import ep.logic.GodGubi;
import ep.model.Ant;
import ep.model.Board;

public class TestLife {
	public static void main(String[] args) throws IOException {
		int h = 100;
		int w = 100;
		Board initialBoard = new Board(h,w);

//		for (int i = 0; i < h; i++) {
//			for (int j = 0; j < w; j++) {
//				initialBoard.turnOn(i, j);
//			}
//		}
		
		initialBoard.turnOn(47, 47);
		initialBoard.turnOn(48, 48);
		initialBoard.turnOn(49, 49);
		initialBoard.turnOn(50, 50);
		initialBoard.turnOn(51, 51);
		
		initialBoard.turnOn(47, 49);
		initialBoard.turnOn(47, 51);
		initialBoard.turnOn(48, 50);
		initialBoard.turnOn(49, 47);
		initialBoard.turnOn(49, 51);
		
		initialBoard.turnOn(50, 48);
		initialBoard.turnOn(51, 47);
		initialBoard.turnOn(51, 49);
		
		
		
		Ant z = new Ant(49, 49);
		new BoardAntPrinter().print(initialBoard, z);
		
		int iteractions = 20;
		int numberOfProcessors = 2;
		GodGubi gubi = new GodGubi(initialBoard, z, iteractions,
				numberOfProcessors);
		gubi.playGame();
	}
}
